	<div class="modal fade" id="Jiaoyu" tabindex="-1" role="dialog" aria-labelledby="myModalLabel" aria-hidden="true" style="  margin-top: 60px;    z-index: 11111;">
		<div class="modal-dialog" style="height: 680px; overflow-y: auto;">
			<div class="modal-content" style="padding: 15px">
				<style type="text/css">
				.link-browser ul li{width: 120px; }
				.list-group .list-group-item a{color:#428bca;}
				.link-browser .page-header, .link-modal .page-header{margin:25px 0 10px;}
				.link-browser .page-header:first-child, .link-modal .page-header:first-of-type{margin-top:0;}
				.link-browser div.btn, .link-modal div.btn{min-width:100px; text-align:center; margin:5px 2px;}
				</style>
				<div class="modal-content">
				<div class="link-browser">
				</div>
				<div class="modal-footer"><button type="button" class="btn btn-default" data-dismiss="modal">取消</button></div>			
				</div>
				<!-- /.modal-content -->
			</div>
		</div>
		<!-- /.modal-dialog -->
	</div>
<script type="text/javascript">	
function showJiaoyuDialog(urlid,type) {
	 $('#Jiaoyu').modal('show');
	 $("#bodyhidden").show();
	$('#Jiaoyu').find(".link-browser").children().remove();
	var urlid = urlid;
	var types = type;
	var alertHtml = "";
		if (types ==1){
			alertHtml += "<div class=\"page-header\">";
			alertHtml += "<h4><i class=\"fa fa-folder-open-o\"></i>公共前端</h4>";
			alertHtml += "</div>";
			alertHtml += "<div class=\"btn btn-default\" onclick=\"clicklinks('detail','"+urlid+"');\" title=\"首页\">首页</div>";
			alertHtml += "<div class=\"btn btn-default\" onclick=\"clicklinks('user','" + urlid + "');\" title=\"个人中心\">个人中心</div>";
			alertHtml += "<div class=\"btn btn-default\" onclick=\"clicklinks('jianjie','" + urlid + "');\" title=\"学校简介\">学校简介</div>";
			alertHtml += "<div class=\"btn btn-default\" onclick=\"clicklinks('bangding','" + urlid + "');\" title=\"微信绑定\">微信绑定</div>";
			alertHtml += "<div class=\"btn btn-default\" onclick=\"clicklinks('cooklist','"+urlid+"');\" title=\"食谱\">食谱</div>";
			alertHtml += "<div class=\"btn btn-default\" onclick=\"clicklinks('kc','" + urlid + "');\" title=\"课程\">课程</div>";
			alertHtml += "<div class=\"btn btn-default\" onclick=\"clicklinks('signup','" + urlid + "');\" title=\"在线报名\">在线报名</div>";
			alertHtml += "<div class=\"btn btn-default\" onclick=\"clicklinks('zhaosheng','"+urlid+"');\" title=\"招生简章\">招生简章</div>";
			alertHtml += "<div class=\"btn btn-default\" onclick=\"clicklinks('teachers','" + urlid + "');\" title=\"教师风采\">教师风采</div>";
		}else{	
			alertHtml += "<div class=\"page-header\">";
			alertHtml += "<h4><i class=\"fa fa-folder-open-o\"></i>家长端</h4>";
			alertHtml += "</div>";
			alertHtml += "<div class=\"btn btn-default\" onclick=\"clicklinks('allcamera','" + urlid + "');\" title=\"实时画面\">实时画面</div>";
			alertHtml += "<div class=\"btn btn-default\" onclick=\"clicklinks('checkcard','" + urlid + "');\" title=\"考勤卡\">考勤卡</div>";
			alertHtml += "<div class=\"btn btn-default\" onclick=\"clicklinks('calendar','" + urlid + "');\" title=\"考勤记录\">考勤记录</div>";
			alertHtml += "<div class=\"btn btn-default\" onclick=\"clicklinks('callbook','" + urlid + "');\" title=\"通讯录\">通讯录</div>";
			alertHtml += "<div class=\"btn btn-default\" onclick=\"clicklinks('chengji','" + urlid + "');\" title=\"成绩\">成绩</div>";
			alertHtml += "<div class=\"btn btn-default\" onclick=\"clicklinks('jiaoliu','" + urlid + "');\" title=\"对话班主任\">对话班主任</div>";
			alertHtml += "<div class=\"btn btn-default\" onclick=\"clicklinks('slylist','" + urlid + "');\" title=\"消息留言\">消息留言</div>";
			alertHtml += "<div class=\"btn btn-default\" onclick=\"clicklinks('myinfo','" + urlid + "');\" title=\"学生基本信息\">学生基本信息</div>";
			alertHtml += "<div class=\"btn btn-default\" onclick=\"clicklinks('myclass','" + urlid + "');\" title=\"已报课程\">已报课程</div>";
			alertHtml += "<div class=\"btn btn-default\" onclick=\"clicklinks('mytecher','" + urlid + "');\" title=\"我的老师\">我的老师</div>";
			alertHtml += "<div class=\"btn btn-default\" onclick=\"clicklinks('order','" + urlid + "');\" title=\"缴费中心\">缴费中心</div>";
			alertHtml += "<div class=\"btn btn-default\" onclick=\"clicklinks('sbjq','" + urlid + "');\" title=\"学生班级圈\">学生班级圈</div>";
			alertHtml += "<div class=\"btn btn-default\" onclick=\"clicklinks('sbjqfabu','" + urlid + "');\" title=\"发布班级圈\">发布班级圈</div>";
			alertHtml += "<div class=\"btn btn-default\" onclick=\"clicklinks('sxclist','" + urlid + "');\" title=\"相册\">相册</div>";
			alertHtml += "<div class=\"btn btn-default\" onclick=\"clicklinks('snoticelist','" + urlid + "');\" title=\"通知\">通知</div>";
			alertHtml += "<div class=\"btn btn-default\" onclick=\"clicklinks('szjhlist','" + urlid + "');\" title=\"周计划\">周计划</div>";
			alertHtml += "<div class=\"btn btn-default\" onclick=\"clicklinks('szuoyelist','" + urlid + "');\" title=\"作业\">作业</div>";
			alertHtml += "<div class=\"btn btn-default\" onclick=\"clicklinks('sxcfb','" + urlid + "');\" title=\"发布照片\">发布照片</div>";		
			alertHtml += "<div class=\"btn btn-default\" onclick=\"clicklinks('xsqj','" + urlid + "');\" title=\"学生请假\">学生请假</div>";
			alertHtml += "<div class=\"btn btn-default\" onclick=\"clicklinks('sclistforxs','" + urlid + "');\" title=\"在校表现\">在校表现</div>";
			alertHtml += "<div class=\"btn btn-default\" onclick=\"clicklinks('callbook','" + urlid + "');\" title=\"通讯录\">通讯录</div>";
			alertHtml += "<div class=\"btn btn-default\" onclick=\"clicklinks('wxsign','" + urlid + "');\" title=\"签到\">微信进离校签到</div>";
			alertHtml += "<div class=\"btn btn-default\" onclick=\"clicklinks('leavelist','" + urlid + "');\" title=\"请假记录\">请假记录</div>";
			alertHtml += "<div class=\"btn btn-default\" onclick=\"clicklinks('useredit','" + urlid + "');\" title=\"个人设置\">个人设置</div>";
			alertHtml += "<div class=\"btn btn-default\" onclick=\"clicklinks('myfamily','" + urlid + "');\" title=\"我的家庭\">我的家庭</div>";			
		}	
	$('#Jiaoyu').find(".link-browser").append(alertHtml);
}
	$("#Jiaoyu").click(function(){
		$("#bodyhidden").hide();
	});

	function clicklinks(href, urlid) {
		var urlid = urlid;
		var href = href;
		var ipt = $("#"+urlid);
			if (ipt){
				hrefs = "./index.php?i="+"{$weid}" + "&c=entry&m=fm_jiaoyu" + "&do=" + href + "&schoolid=" + "{$schoolid}";
				$("#"+urlid).val(hrefs);
				$('#Jiaoyu').modal('hide');
			}
	}	
</script>
<script type="text/javascript">	
	function showLinkDialog(elm) {
		require(["util","jquery"], function(u, $){
			var ipt = $(elm).parent().parent().parent().prev();
			u.linkBrowser(function(href){
				var multiid = "3";
				if (multiid) {
					href = /(&)?t=/.test(href) ? href : href + "&t=" + multiid;
				}
				ipt.val(href);
			});
		});
	}
	function newsLinkDialog(elm, page) {
		require(["util","jquery"], function(u, $){
			var ipt = $(elm).parent().parent().parent().prev();
			u.newsBrowser(function(href, page){
				if (page != "" && page != undefined) {
					newsLinkDialog(elm, page);
					return false;
				}
				var multiid = "3";
				if (multiid) {
					href = /(&)?t=/.test(href) ? href : href + "&t=" + multiid;
				}
				ipt.val(href);
			}, page);
		});
	}
	function pageLinkDialog(elm, page) {
		require(["util","jquery"], function(u, $){
			var ipt = $(elm).parent().parent().parent().prev();
			u.pageBrowser(function(href, page){
				if (page != "" && page != undefined) {
					pageLinkDialog(elm, page);
					return false;
				}
				var multiid = "3";
				if (multiid) {
					href = /(&)?t=/.test(href) ? href : href + "&t=" + multiid;
				}
				ipt.val(href);
			}, page);
		});
	}
	function articleLinkDialog(elm, page) {
		require(["util","jquery"], function(u, $){
			var ipt = $(elm).parent().parent().parent().prev();
			u.articleBrowser(function(href, page){
				if (page != "" && page != undefined) {
					articleLinkDialog(elm, page);
					return false;
				}
				var multiid = "3";
				if (multiid) {
					href = /(&)?t=/.test(href) ? href : href + "&t=" + multiid;
				}
				ipt.val(href);
			}, page);
		});
	}
	function phoneLinkDialog(elm, page) {
		require(["util","jquery"], function(u, $){
			var ipt = $(elm).parent().parent().parent().prev();
			u.phoneBrowser(function(href, page){
				if (page != "" && page != undefined) {
					phoneLinkDialog(elm, page);
					return false;
				}
				ipt.val(href);
			}, page);
		});
	}
	function mapLinkDialog(elm) {
		require(["util","jquery"], function(u, $){
			var ipt = $(elm).parent().parent().parent().prev();
			u.map(elm, function(val){
				var href = 'http://api.map.baidu.com/marker?location='+val.lat+','+val.lng+'&output=html&src=we7';
				var multiid = "3";
				if (multiid) {
					href = /(&)?t=/.test(href) ? href : href + "&t=" + multiid;
				}
				ipt.val(href);
			});
		});
	}
</script>
